import request from '@/router/axios';



// 充值
export const getRecharge = (current, size) => {
    return request({
        url: '/api/blade-tenant/charge/getRecharge',
        method: 'get',
        params: {
            current,
            size
        }
    })
}
// 提现
export const getWithdrawal = (current, size) => {
    return request({
        url: '/api/blade-tenant/charge/getWithdrawal',
        method: 'get',
        params: {
            current,
            size
        }
    })
}

// 盈利
export const getEarnings = (current, size) => {
    return request({
        url: '/api/blade-tenant/charge/getEarnings',
        method: 'get',
        params: {
            current,
            size
        }
    })
}

// 支出
export const getExpenses = (current, size) => {
    return request({
        url: '/api/blade-tenant/charge/getExpenses',
        method: 'get',
        params: {
            current,
            size
        }
    })
}

// 退还
export const getBacks = (current, size) => {
    return request({
        url: '/api/blade-tenant/charge/getBacks',
        method: 'get',
        params: {
            current,
            size
        }
    })
}



// 余额
export const getCashCount = () => {
    return request({
        url: '/api/tenantwallet/detail',
        method: 'get',
        params: {

        }
    })
}


// 支付宝支付

export const aliPay = (product) => {
    return request({
        url: '/api/alipay/alipay',
        method: 'post',
        data: {
            ...product
        }
    })
}


// 二维码支付微信
export const wechartPay = (product) => {
    return request({
        url: '/api/weixin/qcPay2',
        method: 'post',
        data: {
            ...product
        }
    })
}